#include <map> 
#include <string> 
#include <iostream> 
#include <stdlib.h>
#include <math.h>
using namespace std; 
void printArray(int a[], int length)
{
    for(int i=0; i< length; ++i){
        cout << a[i] <<endl;   
    }
    
}
int main()
{
	//double a = 0.386582;
	//cout << a << endl<<fabs( 0.386582)<<endl;
	int a[2] = {1,2};
    printArray(a,2);
    return 0;
}
/*
	map<string,int> rateMatrix[100];
    rateMatrix[0]["good"] = 2;
    rateMatrix[0]["dajiahao"] = 10;
    
    map<string,int>::iterator end = rateMatrix[0].end();
	map<string,int>::iterator it = rateMatrix[0].begin();
	cout <<(*end).first<<endl;
	*/
	/*
	int i = 0;
	while((it++) != end) {
		//++it;
		cout << i <<endl;
		++i;
	}
	*/
    
	/*
	int end = 0;
	int it = 1;
	while((it++) != end) {
		//++it;
		if(it > 10000)
		{
			std::cout << "it exceeds 10000!" << std::endl;
			break;
		}
		
	}
	*/
   // std::cout << "hello,world!" << std::endl;
    
    /*
    map<string,int> rateMatrix[100];
    rateMatrix[0]["good"] = 2;
    rateMatrix[0]["dajiahao"] = 10;
    std::cout <<  rateMatrix[0]["good"]<< std::endl;
    std::cout <<  rateMatrix[0]["nihao"]<< std::endl;
   	std::cout <<  rateMatrix[0]["dajiahao"]<< std::endl;
   	std::cout <<  rateMatrix[0]["zgdsag"]<< std::endl;
    std::cout << "hello,world!" << std::endl;
    */
